Switch the order for cursor lookup
authorMatthias Clasen <mclasen@redhat.com>
Sat, 9 Dec 2017 13:33:21 +0000 (08:33 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 9 Dec 2017 13:35:23 +0000 (08:35 -0500)
When looking for the cursor to apply, start from the innermost
widget and go up. This is the right behavior for cases like
entry icons. The top-down order we were using so far is the
right behavior for cases like global wait cursors. Since we
have entry icons in gtk, but not global wait cursors, lets
pick the other order for now.

gtk/gtkwindow.c

index eb00059de6e5f475f23981d6899cc8b7a433b55f..9396dfc93861de94a4a89fe51a418267226d23c3 100644 (file)
@@ -11358,7 +11358,7 @@ update_cursor (GtkWindow *toplevel,
         }
     }
 
-  for (l = widgets; l; l = l->next)
+  for (l = g_list_last (widgets); l; l = l->prev)
     {
       cursor = gtk_widget_get_cursor (l->data);
       if (cursor)